package edu.hunau.cxb19.basic.class02;

/**
 *
 *@author hb
 *
 * 2020-02-10 15:34:08
 */
public class ChangeValueTypeDemo {

	public static void main(String[] args) {
		int max=0x7fff_ffff;
		float f1=max;
		System.out.println("max="+max+",f1="+f1);
		
		byte b1=127;//127作为常量为int类型
		byte b2=(byte)128;//128超出byte的范围
		System.out.println("b2="+b2);//-128
		
		short s1=b1;
		
	 
	}
}
